<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/min_header}

    <div class="betTitle fix">
      <div class="betLogo">
        <h2>{$info['title']}</h2>
        <i class="iconfont L_K3"></i>
      </div>
      <div class="time">
        <div class="timeTitle">
          距<b id="qh">{$k3info['period']}</b>期投注截止还有：
        </div>
        <em id="timer">00:00:00</em>
      </div>
      
      <script type="text/javascript" src="static/js/jquery.downCount.js"></script>
      <script type="text/javascript">
        var newdate = '{date('m/d/Y H:i:s',$k3info['stoptime'])}';
        $('#timer').downCount({
            date: newdate,
            offset: +8
        }, function () {
            var newperiod = {$k3info['period']} + 1;        
            $('#qh').html(newperiod);
              layer.alert('{$k3info['period']}期已截止<br />当前期号'+newperiod+'<br />投注时请注意期号', {
              title: '温馨提示'
            },function (index, item) {  
              //layer.close(index);  
              location.reload();  
            });
            return;
        });
      </script>
      <div id="Results" class="announced">
        <div class="announcedTitle">
          第<b>{$k3info['period']}</b>期开奖号码：
        </div>

        <ul class="announcedNo fix">
          <img src="//imagess-google.com/system/pc/k3/open_num.gif" width="61" height="71"><img src="//imagess-google.com/system/pc/k3/open_num.gif" width="61" height="71"><img src="//imagess-google.com/system/pc/k3/open_num.gif" width="61" height="71">
        </ul>
        <ul class="announcedNo fix">
          <li class="announcedNo2"></li>
          <li class="announcedNo4"></li>
          <li class="announcedNo6"></li>
        </ul>
        <ul class="announcedNo announcedNoText fix">
          <li class="announcedNo2">2</li>
          <li class="announcedNo4">4</li>
          <li class="announcedNo6">6</li>
        </ul>
      </div>
    </div>
    <div class="betContent fix">
      <div class="betLeft">
        <div>
          <div class="betNavCon">
            <ul class="betNav fix" style="width: 1232px; transform: translateX(0px);">
              {loop $k3 as $r}
                <a href="index.php?m=index&c=k3&a={$r['ename']}"><li class="{if $a == $r['ename']}active{/if}">{$r['title']}</li></a>
              {/loop}
              
            </ul>
          </div>
          <a class="betNavtab left"><span><em></em></span></a><a class="betNavtab right"><span><em></em></span></a>
        </div>

        <div>
          <ul class="betFilter" id="lottery">
            <li class="layui-this">和值</li>
            <li>三同号通选</li>
            <li>三同号单选</li>
            <li>三不同号</li>
            <li>三连号通选</li>
            <li>二同号复选</li>
            <li>二同号单选</li>
            <li>二不同号</li>
          </ul>
          <div class="betTip">
            <i class="iconfont"></i>猜3个开奖号相加的和，3-10为小，11-18为大。赔率1.95-189.00倍。
          </div>
          <div id="lotteryc">
              <div class="lotteryshow layui-tab-item layui-show">
                  <div class="checkNumber">
                      <ul>
                          {loop $c['he'] as $r}
                          <li><a class="ClickShade he" data-id="{$r['val']}">{$r['val']}</a><span> 赔{$r['bl']}</span></li>
                          {/loop}
                      </ul>
                  </div>
              </div>
              <div class="lotteryshow layui-tab-item">
                  <div class="checkNumber">
                      <ul>
                          {loop $c['sth'] as $r}
                            <li><a class="ClickShade sth" data-id="{$r['val']}">{$r['val']}</a></li>
                          {/loop}
                      </ul>
                  </div>
              </div>
              <div class="lotteryshow layui-tab-item">
                  <div class="checkNumber">
                      <ul>
                          <li><a class="ClickShade sthdx" data-id="sthdx">111</a></li>
                          <li><a class="ClickShade sthdx" data-id="sthdx">222</a></li>
                          <li><a class="ClickShade sthdx" data-id="sthdx">333</a></li>
                          <li><a class="ClickShade sthdx" data-id="sthdx">444</a></li>
                          <li><a class="ClickShade sthdx" data-id="sthdx">555</a></li>
                          <li><a class="ClickShade sthdx" data-id="sthdx">666</a></li>
                      </ul>
                  </div>
                  <div class="Panel" id="sthdx">
                      <p class="betTotal">您选择了 <em>0</em> 注</p>
                      <a class="betBtn ClickShade" id="sthdx">确认选号</a>
                  </div>
              </div>
              <div class="lotteryshow layui-tab-item">
                  <div class="checkNumber">
                      <ul>
                          <li><a class="ClickShade sbth">1</a></li>
                          <li><a class="ClickShade sbth">2</a></li>
                          <li><a class="ClickShade sbth">3</a></li>
                          <li><a class="ClickShade sbth">4</a></li>
                          <li><a class="ClickShade sbth">5</a></li>
                          <li><a class="ClickShade sbth">6</a></li>
                      </ul>
                  </div>
                  <div class="Panel" id="sbth">
                      <p class="betTotal">您选择了 <em>0</em> 注</p>
                      <a class="betBtn ClickShade">确认选号</a>
                  </div>
              </div>
              <div class="lotteryshow layui-tab-item">
                  <div class="checkNumber">
                      <ul>
                          {loop $c['slhtx'] as $r}
                          <li><a class="ClickShade slhtx" data-id="{$r['val']}">{$r['val']}</a></li>
                          {/loop}
                      </ul>
                  </div>
              </div>
              <div class="lotteryshow layui-tab-item">
                  <div class="checkNumber">
                      <div class="checkNumber">
                          <ul>
                              <li><a class="ClickShade ethfx" data-id="ethfx">11</a></li>
                              <li><a class="ClickShade ethfx" data-id="ethfx">22</a></li>
                              <li><a class="ClickShade ethfx" data-id="ethfx">33</a></li>
                              <li><a class="ClickShade ethfx" data-id="ethfx">44</a></li>
                              <li><a class="ClickShade ethfx" data-id="ethfx">55</a></li>
                              <li><a class="ClickShade ethfx" data-id="ethfx">66</a></li>
                          </ul>
                      </div>
                      <div class="Panel" id="ethfx">
                          <p class="betTotal">您选择了 <em>0</em> 注</p>
                          <a class="betBtn ClickShade">确认选号</a>
                      </div>
                  </div>
              </div>
              <div class="lotteryshow layui-tab-item">
                  <div class="checkNumber">
                      <ul data-type="one">
                          <li><a class="ClickShade ethdx">11</a></li>
                          <li><a class="ClickShade ethdx">22</a></li>
                          <li><a class="ClickShade ethdx">33</a></li>
                          <li><a class="ClickShade ethdx">44</a></li>
                          <li><a class="ClickShade ethdx">55</a></li>
                          <li><a class="ClickShade ethdx">66</a></li>
                      </ul>
                      <ul data-type="two">
                          <li><a class="ClickShade ethdx">1</a></li>
                          <li><a class="ClickShade ethdx">2</a></li>
                          <li><a class="ClickShade ethdx">3</a></li>
                          <li><a class="ClickShade ethdx">4</a></li>
                          <li><a class="ClickShade ethdx">5</a></li>
                          <li><a class="ClickShade ethdx">6</a></li>
                      </ul>
                  </div>
                  <div class="Panel" id="ethdx">
                      <p class="betTotal">您选择了 <em>0</em> 注</p>
                      <a class="betBtn ClickShade">确认选号</a>
                  </div>
              </div>
              <div class="lotteryshow layui-tab-item">
                  <div class="checkNumber">
                      <ul>
                          <li><a class="ClickShade ebth">1</a></li>
                          <li><a class="ClickShade ebth">2</a></li>
                          <li><a class="ClickShade ebth">3</a></li>
                          <li><a class="ClickShade ebth">4</a></li>
                          <li><a class="ClickShade ebth">5</a></li>
                          <li><a class="ClickShade ebth">6</a></li>
                      </ul>
                  </div>
                  <div class="Panel" id="ebth">
                      <p class="betTotal">您选择了 <em>0</em> 注</p>
                      <a class="betBtn ClickShade">确认选号</a>
                  </div>
              </div>
          </div>

          <div class="checkedList">
            <table>
            <tbody>

            </tbody>
            </table>
          </div>
          <div class="Bet" id="BetCount">
            <p class="betTotal">
              方案注数 <em>0</em> 注，金额 <i class="money">0</i> 元
            </p>
            <a class="betBtn ClickShade UnClick" id="lj">立即投注</a>
          </div>
        </div>
      </div>
      
      <div class="betRight">
        <div class="today box">
          <h3>今日开奖</h3>
          <div class="more">
            <a href="/trendChart/1401" target="_blank">走势图</a><a>玩法说明</a>
          </div>

          <div class="ResultsList">
            <table id="fn_getoPenGame" class="ty_table_gameBet curr" width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
            <tr>
              <th scope="col">
                期号
              </th>
              <th scope="col">
                开奖号
              </th>
              <th scope="col">
                和值
              </th>
              <th scope="col">
                形态
              </th>
            </tr>
            </tbody>
            <tbody>
            {loop $list as $r}
            <tr>
              <td class="c_green"><i class="o_qi">{$r['period']}</i></td>
              <td><i class="numbers">{$r['code']}</i></td>
              <td>12</td>
              <td><em class="da">大</em><em class="shuang">双</em></td>
            </tr>
            {/loop}
        
  
            </tbody>
            </table>
          </div>
        </div>
        <div class="mybet box">
          <h3>我的投注</h3>

          <table class="_mybetContent" width="100%" cellspacing="0" cellpadding="0" border="0">
          <tbody>
          <tr>
            <th>
              期号
            </th>
            <th>
              投注金额
            </th>
            <th>
              奖金
            </th>
          </tr>

          <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
          </tr>
          <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
          </tr>
          <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
          </tr>
          <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
          </tr>
          <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
          </tr>
          </tbody>
          </table>

          <table class="_betChaseAnimation dpn" width="100%" cellspacing="0" cellpadding="0" border="0">
          </table>
          <table class="more">
          <tbody>
          <tr>
            <td>
              <a href="/betRecord">更多&gt;&gt;</a>
            </td>
          </tr>
          </tbody>
          </table>
        </div>
        <div class="winningList box" style="height: 500px;">
          <h3 class="winnerTab" onclick="messBoxController(this, 'lotteryInfo')">中奖信息</h3>
          	<h3 class="winnerTab notSelect" onclick="messBoxController(this, 'moneyList')">昨日盈利榜</h3>
          	<div id="Ranking" class="winnerListSlide" style="width: 100%; box-sizing: content-box;">
                <div  class="messBox" id="lotteryInfo" style="width: 100%;">
                  <table width="100%">
                  <tbody>
                  <tr>
                    <th>
                      中奖信息实时更新
                    </th>
                  </tr>
                  </tbody>
                  </table>
                  <div class="bd">
                    <div class="tempWrap" style="overflow: hidden; height: 510px;">
                      <ul class="winnerList">
                        <li><img src="//imagess-google.com/system/common/headimg/1B6A214FF62BD91F.jpg">
                        <p>
                          zs***2 大发快3<br>
                          喜中<span>¥5.85</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/9816F54B27A9BF48.jpg">
                        <p>
                          天下独尊 大发快3<br>
                          喜中<span>¥63.04</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/EF01C8BED7B70053.jpg">
                        <p>
                          12***8 大发快3<br>
                          喜中<span>¥173.7</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/EED50A5799E76E58.jpg">
                        <p>
                          yj***x 大发快3<br>
                          喜中<span>¥39.4</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/C707188A6E10AED4.jpg">
                        <p>
                          xh***o 大发快3<br>
                          喜中<span>¥5.91</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/6F1A99A3D02A6DEC.jpg">
                        <p>
                          qq***7 大发快3<br>
                          喜中<span>¥7.88</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/CA64E00C3F9FD5F3.jpg">
                        <p>
                          tf***1 大发快3<br>
                          喜中<span>¥9.85</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/3578E1EB410B49C7.jpg">
                        <p>
                          11***2 大发快3<br>
                          喜中<span>¥1.97</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/3578E1EB410B49C7.jpg">
                        <p>
                          11***2 大发快3<br>
                          喜中<span>¥5.91</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/4A2E3EA214381904.jpg">
                        <p>
                          29***5 大发快3<br>
                          喜中<span>¥7.64</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/9816F54B27A9BF48.jpg">
                        <p>
                          ns***0 大发快3<br>
                          喜中<span>¥5.91</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/9816F54B27A9BF48.jpg">
                        <p>
                          00***1 大发快3<br>
                          喜中<span>¥585</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/EF01C8BED7B70053.jpg">
                        <p>
                          03***6 大发快3<br>
                          喜中<span>¥432.9</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/C707188A6E10AED4.jpg">
                        <p>
                          ch***3 大发快3<br>
                          喜中<span>¥38</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/4A2E3EA214381904.jpg">
                        <p>
                          yw***1 大发快3<br>
                          喜中<span>¥1322.4</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/3578E1EB410B49C7.jpg">
                        <p>
                          小丽 大发快3<br>
                          喜中<span>¥94.8</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/F95FE943163DAF92.jpg">
                        <p>
                          15***1 大发快3<br>
                          喜中<span>¥17.28</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/A9734CC321C8B363.jpg">
                        <p>
                          18***8 大发快3<br>
                          喜中<span>¥1970</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/4D73D09EC5D7BFE3.jpg">
                        <p>
                          li***3 大发快3<br>
                          喜中<span>¥9.85</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/EF01C8BED7B70053.jpg">
                        <p>
                          爱漾 大发快3<br>
                          喜中<span>¥985</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/1B6A214FF62BD91F.jpg">
                        <p>
                          zs***2 大发快3<br>
                          喜中<span>¥5.85</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/9816F54B27A9BF48.jpg">
                        <p>
                          天下独尊 大发快3<br>
                          喜中<span>¥63.04</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/EF01C8BED7B70053.jpg">
                        <p>
                          12***8 大发快3<br>
                          喜中<span>¥173.7</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/EED50A5799E76E58.jpg">
                        <p>
                          yj***x 大发快3<br>
                          喜中<span>¥39.4</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/C707188A6E10AED4.jpg">
                        <p>
                          xh***o 大发快3<br>
                          喜中<span>¥5.91</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/6F1A99A3D02A6DEC.jpg">
                        <p>
                          qq***7 大发快3<br>
                          喜中<span>¥7.88</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/CA64E00C3F9FD5F3.jpg">
                        <p>
                          tf***1 大发快3<br>
                          喜中<span>¥9.85</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/3578E1EB410B49C7.jpg">
                        <p>
                          11***2 大发快3<br>
                          喜中<span>¥1.97</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/3578E1EB410B49C7.jpg">
                        <p>
                          11***2 大发快3<br>
                          喜中<span>¥5.91</span>
                        </p>
                        </li>
                        <li><img src="//imagess-google.com/system/common/headimg/4A2E3EA214381904.jpg">
                        <p>
                          29***5 大发快3<br>
                          喜中<span>¥7.64</span>
                        </p>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
                <div class="messBox" id="moneyList" style="width: 100%; display: none;">
                  <table style="position: relative;" width="100%" cellspacing="0" cellpadding="0" border="0">
                  <tr>
                    <th colspan="2">
                      昨日累计盈利排行榜
                    </th>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/A9734CC321C8B363.jpg">
                      <p>
                        账号昵称：ts***8<br>
                昨日盈利：
                        <i>¥343691</i>
                      </p>
                    </td>
                    <td>
                      <ins>1</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/4D73D09EC5D7BFE3.jpg">
                      <p>
                        账号昵称：wu***1<br>
                昨日盈利：
                        <i>¥280000</i>
                      </p>
                    </td>
                    <td>
                      <ins>2</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/367498B6A748D910.jpg">
                      <p>
                        账号昵称：zy***3<br>
                昨日盈利：
                        <i>¥248713</i>
                      </p>
                    </td>
                    <td>
                      <ins>3</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/1cf127223f44d417.jpg">
                      <p>
                        账号昵称：苏雨<br>
                昨日盈利：
                        <i>¥185376</i>
                      </p>
                    </td>
                    <td>
                      <ins>4</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/C707188A6E10AED4.jpg">
                      <p>
                        账号昵称：深<br>
                昨日盈利：
                        <i>¥163010</i>
                      </p>
                    </td>
                    <td>
                      <ins>5</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/A9734CC321C8B363.jpg">
                      <p>
                        账号昵称：努力奋斗<br>
                昨日盈利：
                        <i>¥157733</i>
                      </p>
                    </td>
                    <td>
                      <ins>6</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/EED50A5799E76E58.jpg">
                      <p>
                        账号昵称：八哥<br>
                昨日盈利：
                        <i>¥150243</i>
                      </p>
                    </td>
                    <td>
                      <ins>7</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/A9734CC321C8B363.jpg">
                      <p>
                        账号昵称：15***8<br>
                昨日盈利：
                        <i>¥140002</i>
                      </p>
                    </td>
                    <td>
                      <ins>8</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/4D73D09EC5D7BFE3.jpg">
                      <p>
                        账号昵称：我要买房<br>
                昨日盈利：
                        <i>¥126091</i>
                      </p>
                    </td>
                    <td>
                      <ins>9</ins>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <img src="//imagess-google.com/system/common/headimg/7f02613f51d3b253.jpg">
                      <p>
                        账号昵称：13***5<br>
                昨日盈利：
                        <i>¥119622</i>
                      </p>
                    </td>
                    <td>
                      <ins>10</ins>
                    </td>
                  </tr>
                  </table>
                </div>
          	</div>
        </div>
        <div class="cardBox">

        </div>
      </div>
    </div>
  </div>

<div id="confirm" class="layermbox layermbox0 layermshow" index="20" style="display:none;">
  <div class="laymshade">
  </div>
  <div class="layermmain">
    <div class="section">
      <div class="layermchild layerBet layermanim">
        <h3 style="">投注确认</h3>
        <button class="layermend"></button>
        <div class="layermcont">
          <div id="CheckBetLayer" class="lotteryConfirm">
            <ul>
              <li><span>彩种：</span><em class="fill" id="title">{$info['title']}</em></li>
              <li><span>期号：</span>第<em class="fill">{$k3info['period']}</em>期</li>
              <li><span>详情：</span>
              <div class="fill textarea">
                <p>
                 
                </p>
              </div>
              </li>
              <li><span>投注总金额：</span><em><em class="fill" id="countmoney">28</em>元</em></li>
            </ul>
          </div>
        </div>
        <div class="layermbtn">
          <span type="0" id="qx">取消</span><span id="k3sub" type="1">确认投注</span>
        </div>
      </div>
    </div>
  </div>
</div>
<input type="hidden" id="a" value="{$a}" />
<input type="hidden" id="period" value="{$k3info['period']}" />
<script type="text/javascript">
    var ct2 = "{U('index/k3/countnum2')}";
    var ct3 = "{U('index/k3/countnum3')}";
    var curl = "{U('index/k3/returnbl')}";
    var orderurl = "{U('index/k3/orderAdd')}";
</script>
<script src="static/js/k3.js"></script>
<script>
function AutoScroll(obj, oj) {
    $(obj).find("."+oj+":first").animate({
        marginTop: "-40px"
    },
    "500",
    function() {
        $(this).css({
            marginTop: "0px"
        }).find("li:first").appendTo(this);
    });
}
$(document).ready(function() {
    setInterval('AutoScroll(".tempWrap", "winnerList")', 5000)
});

function messBoxController(obj, targe){
	// 切换选项卡样式
	$('.winnerTab').addClass('notSelect');
	obj.className = 'winnerTab';
	// 更改信息框的展示效果
	$('.messBox').hide();
	$('#' + targe).show();
}
</script>
{template index/footer}